from django.db import models


class UserInfo(models.Model):
    """用户表"""
    role = models.IntegerField(verbose_name="角色", choices=((1, "总监"), (2, "经理"), (3, "员工")), default=3)
    username = models.CharField(verbose_name="用户名", max_length=32)
    password = models.CharField(verbose_name="密码", max_length=64)
    # 临时方法，存储token
    token = models.CharField(verbose_name="TOKEN", max_length=64, null=True, blank=True)